package com.zkyc.framework.common.pojo;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bouncycastle.pqc.jcajce.provider.qtesla.SignatureSpi;

/**
 * (Center)实体类
 *
 * @author libingchuan
 * @since 2022-05-25 19:21:46
 */
@TableName("web_center")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Center implements Serializable {
    private static final long serialVersionUID = -32890226365691069L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 中心名称
     */
    private String centerName;
    /**
     * 组织id
     */
    private Integer organizationId;

    private String pi;

    @TableField(exist = false)
    private List<String> pis;

    private String operateUserId;

    private String attachementUrl;

    @TableField(exist = false)
    private JSONArray attachementUrlJson;

    private String description;

    @TableField(exist = false)
    private Integer treeType;

    @TableField(exist = false)
    private String operateUserName;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtUpdated;
    /**
     * 逻辑删
     */
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private List<Pi> piList;

    private String contactPeople;

    private String contactNumber;

    private String email;

}

